AddBindingRequest

data class AddBindingRequest(name: String, executionContextId: ExecutionContextId?, executionContextName: String?)

Represents request frame that can be used with Runtime#addBinding operation call.

If executionContextId is empty, adds binding with the given name on the global objects of all inspected contexts, including those created later, bindings survive reloads. Binding function takes exactly one argument, this argument should be string, in case of any other input, function throws an exception. Each binding function call produces Runtime.bindingCalled notification.

See also

Constructors

AddBindingRequest
Link copied to clipboard
fun AddBindingRequest(name: String, executionContextId: ExecutionContextId? = null, executionContextName: String? = null)

Properties

executionContextId
Link copied to clipboard
val executionContextId: ExecutionContextId? = null
If specified, the binding would only be exposed to the specified execution context.
executionContextName
Link copied to clipboard
val executionContextName: String? = null
If specified, the binding is exposed to the executionContext with matching name, even for contexts created after the binding is added.
name
Link copied to clipboard
val name: String

Sources

jvm source
Link copied to clipboard